<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" />
</head>
<body>
    <div class="container">
        
        <table class="table table-hover">
            <thead>
                <tr>
                    <th>_id</th>
                    <th>name</th>
                    <th>age</th>
                    <th>sex</th>
                </tr>
            </thead>
            <tbody>
                {{each movies}}
                <tr>
                    <td>{{@ $value._id}}</td>
                    <td><a href="/detail?_id={{@ $value._id}}">{{$value.name}}</a></td>
                    <td>{{$value.age}}</td>
                    <td>{{$value.sex}}</td>
                    <td><a href="/doDelete?_id={{@ $value._id}}" class="btn btn-danger">删除</a>
                    </td>
                </tr>
                {{/each}}
            </tbody>
        </table>
        
    </div>
</body>
</html>